const proxy = require("http-proxy-middleware");

module.exports = app =>{
        app.use(proxy.createProxyMiddleware("/api", {
                target: "http://39.98.226.218/" ,
                changeOrigin: true,
                pathRewrite: {
                        '^/api': ''
                }
        }))
};
